home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Skeleton / Source / Doc.h < prev    next >
Text File  |  1997-02-06  |  1KB  |  50 lines

  1. /*
  2.  *  File:       Doc.h
  3.  *  Summary:       Document class. 
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->     5/25/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZDocument.h>
  17.  
  18.  
  19. // ===================================================================================
  20. //    class CDocument
  21. // ===================================================================================
  22. class CDocument : public TDocument {
  23.  
  24.     typedef TDocument Inherited;
  25.  
  26. //-----------------------------------
  27. //    Initialization/Destruction
  28. //
  29. public:
  30.     virtual             ~CDocument();
  31.     
  32.                           CDocument(MCommander* super);
  33.  
  34. //-----------------------------------
  35. //    TDocument API
  36. //
  37. protected:
  38.     virtual void         OnStreamIn(TInStream& stream, long version);
  39.  
  40.     virtual    void         OnStreamOut(TOutStream& stream) const;
  41.  
  42. //-----------------------------------
  43. //    MCommander API
  44. //
  45. protected:
  46.     virtual bool         OnMenuCommand(const MenuCommand& command);
  47.         
  48.     virtual bool         OnCommandStatus(const MenuCommand& command, SCommandStatus& status);
  49. };
  50.